package com.peogoo.mall.order.controller;

import com.peogoo.common.utils.R;
import com.peogoo.mall.order.vo.SpuSaveVo;
import org.springframework.web.bind.annotation.*;



@RestController
@RequestMapping("order/order")
public class OrderController {


    /**
     * 保存
     */
    @RequestMapping("/getSkuInfo")
    public R getSkuInfo(@RequestBody SpuSaveVo spuSaveVo){
        System.out.println("--------------spuname:"+spuSaveVo.getSpuName() );
        if("手机".equals(spuSaveVo.getSpuName())){
            return R.ok();
        }else {
            return R.error();
        }
    }

}
